#ifndef IP_PORT_PARAM_H
#define IP_PORT_PARAM_H

#include <QtCore>

//IP端口参数(A.B.C.D:E)
//ABCD>=0且ABCD<=255,E>=0且E<=65535
class CIpPortParam
{
public:
    QString GetIpText();
    QString GetIpPortText();

    void FromIp(const QString& strIp);

public:
    quint8 uaFieldA;                    // 字段A
    quint8 uaFieldB;                    // 字段B
    quint8 uaFieldC;                    // 字段C
    quint8 uaFieldD;                    // 字段D
    quint16 usPort;                     // 端口
};

#endif //IP_PORT_PARAM_H
